package java8.stream.demo02buildstream;

/**
 * @author ChangLiang
 * @date 2020/4/22
 */
public class Obj {

    private int id;
    private String name;

    public Obj(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Obj{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
